package com.itheima.health;

import com.itheima.health.util.QiniuUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: liangWeiQUQ
 * @Description: TODO
 * @DateTime: 2021/2/28 9:29
 **/
@SpringBootApplication
@EnableScheduling //定时的事务开启
public class JobApplication {
    public static void main(String[] args) {

        SpringApplication.run(JobApplication.class, args);
    }

    @Bean
    @ConfigurationProperties(prefix = "qiniu")
    public QiniuUtils qiniuUtils() {
        return new QiniuUtils();
    }
}
